package indexer

import org.slf4j.LoggerFactory
import us.codecraft.webmagic.Request
import us.codecraft.webmagic.SpiderListener

object LoggingListener : SpiderListener {
    val Log = LoggerFactory.getLogger(javaClass)
    override fun onSuccess(request: Request) {
        Log.info("SUCCESS {}",request.url)
    }

    override fun onError(request: Request) {
        Log.info("ERROR {}",request.url)
    }
}